<?php 
/* SVN FILE: $Id$ */
/* Nav Test cases generated on: 2009-05-30 23:05:21 : 1243740501*/
App::import('Model', 'Nav');

class NavTestCase extends CakeTestCase {
	var $Nav = null;
	var $fixtures = array('app.nav');

	function startTest() {
		$this->Nav =& ClassRegistry::init('Nav');
	}

	function testNavInstance() {
		$this->assertTrue(is_a($this->Nav, 'Nav'));
	}

	function testNavFind() {
		$this->Nav->recursive = -1;
		$results = $this->Nav->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Nav' => array(
			'id'  => 1,
			'ctype'  => 1,
			'cid'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet',
			'ifshow'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'vieworder'  => 1,
			'opennew'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'url'  => 'Lorem ipsum dolor sit amet',
			'type'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>